<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html>
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>登录</title>

<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="keywords" content="">
<link rel="shortcut icon"
	href="<%=basePath%>resources/images/favicon.ico" />
<link href="resources/bootstrap/css/bootstrap-huan.css" rel="stylesheet">
<link href="resources/font-awesome/css/font-awesome.min.css"
	rel="stylesheet">
<link href="resources/css/style.css" rel="stylesheet">
<style type="text/css">
.form-group {
	margin-bottom: 5px;
	height: 59px;
}
</style>
</head>
<body>
	<header>
		<div class="container" style="padding-bottom:0 !important;">
			<div class="row">
				<div class="col-xs-5">
					<div class="logo">
						<a href="#"><img alt="" src="resources/images/logo.png"
							style="width: 65%;padding:5px 0;"></a>
					</div>
				</div>
			</div>
		</div>
	</header>
	<!-- Navigation bar starts -->

	<div class="navbar bs-docs-nav" role="banner">
		<div class="container">
			<nav class="collapse navbar-collapse bs-navbar-collapse"
				role="navigation"></nav>
		</div>
	</div>

	<!-- Navigation bar ends -->

	<div class="content" style="margin-bottom: 100px; margin-top: 0;">

		<div class="container">
			<div class="row">
				<div class="col-md-6" id="admin-login-bg"
					style="width: 100% !important;">
					<p></p>
					<div class="col-md-5" style="float: right;">
						<div class="lrform">
							<h5 style="text-align: center;">登陆网站管理系统</h5>
							<div class="form" style="width: 90% !important;">
								<!-- Login form (not working)-->
								<form class="form-horizontal" action="j_spring_security_check"
									method="post">
									<!-- Username -->
									<div class="form-group">
										<label class="control-label col-md-3" for="username">用户名</label>
										<div class="col-md-9">
											<input type="text" class="form-control" name="j_username">
										</div>
									</div>
									<!-- Password -->
									<div class="form-group">
										<label class="control-label col-md-3" for="password">密&nbsp;&nbsp;&nbsp;码</label>
										<div class="col-md-9">
											<input type="password" class="form-control" name="j_password">
										</div>
									</div>
									<!-- Buttons -->
									<div class="form-group">
										<!-- Buttons -->
										<div class="col-md-9 col-md-offset-3">
											<button type="submit" class="btn btn-default">登陆</button>
											<button type="reset" class="btn btn-default">取消</button>
											<span class="form-message">${result}</span>
										</div>
									</div>

								</form>
								<div style="padding-left: 10%;">
									<i class="fa fa-info"></i> 通过教师/管理员账号登陆系统
								</div>
							</div>
						</div>

					</div>
				</div>

			</div>

		</div>

	</div>
	<c:import url="../views/common/footer.jsp" />


	<!-- Slider Ends -->

	<!-- Javascript files -->
	<!-- jQuery -->
	<script type="text/javascript"
		src="resources/js/jquery/jquery-1.9.0.min.js"></script>
	<!-- Bootstrap JS -->
	<script type="text/javascript"
		src="resources/bootstrap/js/bootstrap.min.js"></script>

</body>
</html>